layui.use('laydate', function(){
    var laydate = layui.laydate;
    laydate.render({
        elem: '#vi-month-back-input',
        eventElem: '#vi-month-back',
        type: 'month',
        trigger: 'click'
        // done: function(value, date){
        //     layer.alert('你选择的日期是：' + value + '<br>获得的对象是' + JSON.stringify(date));
        // }
    });

    laydate.render({
        elem: '#vi-day-back-input',
        eventElem: '#vi-day-back',
        trigger: 'click'
        // done: function(value, date){
        //     layer.alert('你选择的日期是：' + value + '<br>获得的对象是' + JSON.stringify(date));
        // }
    });
})